package com.example.swd1.gudong.main.sport.trainplan;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;

import com.example.swd1.gudong.R;

public class ChooseTrainPlan extends AppCompatActivity implements View.OnClickListener {
    private ListView planList;
    private ImageView back;
    private ChooseTrainPlanListViewAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choose_train_plan);
        planList = (ListView) findViewById(R.id.plan_list);
        adapter = new ChooseTrainPlanListViewAdapter(this);
        planList.setAdapter(adapter);
        back = (ImageView) findViewById(R.id.iv_plan_back);
        back.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        finish();
    }
}
